﻿<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
             xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
             x:Class="ArchitectureDocumentCatalog.MainPage"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="400"
             Width="800"
             Height="600">

    <Grid x:Name="LayoutRoot"
          Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.085*" />
            <RowDefinition Height="0.915*" />
        </Grid.RowDefinitions>
        <TextBlock HorizontalAlignment="Left"
                   TextWrapping="Wrap"
                   Text="Architecture Document Catalog"
                   VerticalAlignment="Top" />
        <Grid Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.25*" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="0.75*" />
            </Grid.ColumnDefinitions>
            <StackPanel>
                <Border Padding="5">
                    <TextBlock Text="Filter"
                               HorizontalAlignment="Center" />
                </Border>
                <TextBlock TextWrapping="Wrap"
                           Margin="5"
                           Text="Framework:" />
                <ComboBox Margin="0,0,0,5">
                    <ComboBoxItem Content="Rozanski and Woods"
                                  IsSelected="True" />
                </ComboBox>
                <toolkit:Accordion HorizontalAlignment="Stretch"
                                   VerticalAlignment="Stretch"
                                   SelectionMode="ZeroOrMore">
                    <toolkit:AccordionItem Header="Viewpoint" />
                    <toolkit:AccordionItem Header="Perspective" />
                    <toolkit:AccordionItem Header="Stakeholder" />
                    <toolkit:AccordionItem Header="Audience" />
                    <toolkit:AccordionItem Header="System" />
                    <toolkit:AccordionItem Header="Date" />
                </toolkit:Accordion>
            </StackPanel>
            <sdk:GridSplitter Grid.Column="1"
                              HorizontalAlignment="Left"
                              x:Name="gridSplitter1"
                              Width="10" />
            <StackPanel Grid.Column="2">
                <Border BorderBrush="Black"
                        Padding="5"
                        BorderThickness="1">
                    <toolkit:WrapPanel>
                        <TextBlock TextWrapping="Wrap"
                                   Text="Group by"
                                   Margin="0,0,10,0" />
                        <ComboBox Margin="0,0,10,0">
                            <ComboBoxItem Content="Notation"
                                          IsSelected="True" />
                        </ComboBox>
                        <Button Content="+" />
                    </toolkit:WrapPanel>
                </Border>
                <Border BorderBrush="Black"
                        BorderThickness="1"
                        Padding="5">
                    <toolkit:WrapPanel>
                        <TextBlock TextWrapping="Wrap"
                                   Text="Sort by"
                                   Margin="0,0,10,0" />
                        <ComboBox  Margin="0,0,10,0">
                            <ComboBoxItem Content="Title"
                                          IsSelected="True" />
                        </ComboBox>
                        <Button Content="+" />
                    </toolkit:WrapPanel>
                </Border>
                <ScrollViewer>
                	<sdk:TreeView Width="593">
                		<sdk:TreeViewItem Margin="0"
                			IsExpanded="True">
                			<sdk:TreeViewItem.Header>
                				<CheckBox Content="Notation: UML" />
                			</sdk:TreeViewItem.Header>
                			<sdk:TreeViewItem Header="Documents by Title"
                				Margin="0">
                				<sdk:DataGrid AutoGenerateColumns="False"
                					Height="100"
                					x:Name="dataGrid1"
                					Width="120" />
                			</sdk:TreeViewItem>
                		</sdk:TreeViewItem>
                	</sdk:TreeView>
                </ScrollViewer>
            </StackPanel>
        </Grid>

    </Grid>
</UserControl>
